//
//  WYCSetPassController.m
//  51信用卡
//
//  Created by 中企互联 on 2017/11/3.
//  Copyright © 2017年 中企互联. All rights reserved.
//

#import "WYCSetPassController.h"

@interface WYCSetPassController ()

@end

@implementation WYCSetPassController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"修改密码";
    
    UITextField * usertexfield = [[UITextField alloc] init];
    usertexfield.frame = CGRectMake(40 * px, 64 + 40 * px, ScreenWidth - 80 * px, 120 * px);
    //    usertexfield.backgroundColor = [UIColor redColor];
    usertexfield.placeholder = @"请输入手机号";
    [self.view addSubview:usertexfield];
    
    //手机提示线
    UIView * lineView = [[UIView alloc] init];
    lineView.frame = CGRectMake(usertexfield.x, CGRectGetMaxY(usertexfield.frame) + 5 * px, usertexfield.width, 1);
    lineView.backgroundColor = WYCGlobalBg;
    [self.view addSubview:lineView];
    
    
    ////////////////
    /////密码输入框/////
    ///////////////
    
    
    
    
    UITextField * codefield = [[UITextField alloc] init];
    codefield.frame = CGRectMake(usertexfield.x, CGRectGetMaxY(lineView.frame) + 80 * px, usertexfield.width / 2, usertexfield.height);
    codefield.placeholder = @"验证码";
    [self.view addSubview:codefield];
    
    //手机提示线
    UIView * passlineView = [[UIView alloc] init];
    passlineView.frame = CGRectMake(codefield.x, CGRectGetMaxY(codefield.frame) + 5 * px, lineView.width, 1);
    passlineView.backgroundColor = WYCGlobalBg;
    [self.view addSubview:passlineView];
    
    //获取验证码
    UIButton * codebutton = [[UIButton alloc] init];
    codebutton.frame = CGRectMake(ScreenWidth - 350 * px, codefield.y, 300 * px, codefield.height);
    [codebutton setTitleColor:bigredColor forState:UIControlStateNormal];
    codebutton.titleLabel.font = [UIFont systemFontOfSize:MiddleFont];
    [codebutton setTitle:@"获取验证码" forState:UIControlStateNormal];
    [codebutton addTarget:self action:@selector(countDownBtnAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:codebutton];
    
    
    
    ////////////////
    //密码输入框/////
    ///////////////
    
    
    UITextField * passtexfield = [[UITextField alloc] init];
    passtexfield.frame = CGRectMake(usertexfield.x, CGRectGetMaxY(passlineView.frame) + 80 * px, usertexfield.width, usertexfield.height);
    passtexfield.placeholder = @"请输入密码";
    passtexfield.secureTextEntry = YES;
    [self.view addSubview:passtexfield];
    
    //手机提示线
    UIView * passView = [[UIView alloc] init];
    passView.frame = CGRectMake(usertexfield.x, CGRectGetMaxY(passtexfield.frame) + 5 * px, usertexfield.width, 1);
    passView.backgroundColor = WYCGlobalBg;
    [self.view addSubview:passView];
    
    
    
    
    /************再次输入密码************/
    
    
    UITextField * Zpasstexfield = [[UITextField alloc] init];
    Zpasstexfield.frame = CGRectMake(usertexfield.x, CGRectGetMaxY(passView.frame)+80 * px, usertexfield.width, usertexfield.height);
    Zpasstexfield.placeholder = @"再次输入密码";
    Zpasstexfield.secureTextEntry = YES;
    [self.view addSubview:Zpasstexfield];
    
    //手机提示线
    UIView * ZpassView = [[UIView alloc] init];
    ZpassView.frame = CGRectMake(usertexfield.x, CGRectGetMaxY(Zpasstexfield.frame) + 5 * px, usertexfield.width, 1);
    ZpassView.backgroundColor = WYCGlobalBg;
    [self.view addSubview:ZpassView];
    
    
    
    //注册按钮
    UIButton * loginButton = [[UIButton alloc] init];
    loginButton.frame = CGRectMake(usertexfield.x, CGRectGetMaxY(ZpassView.frame) + 300 * px, usertexfield.width, 150 * px);
    loginButton.backgroundColor = bigredColor;
    loginButton.layer.cornerRadius = 3;
    [loginButton setTitle:@"确认修改" forState:UIControlStateNormal];
    loginButton.titleLabel.font = [UIFont systemFontOfSize:72 * px];
    [loginButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [loginButton addTarget:self action:@selector(RegisterClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:loginButton];
}


#pragma make ------->>
- (void)RegisterClick {
    WYCLogFunc;
}

#pragma make -------->>获取验证码
- (void)countDownBtnAction:(UIButton *)sender
{
    WYCLogFunc;
}

@end
